import logging

from speech.baidu.instantial_config import SPEECH_RECOGNIZER


def test_file_recognise(filename):

    logging.warning("Test file recognise start ...")
    err_no, result = SPEECH_RECOGNIZER.wav_file_recognition(filename)
    assert err_no is 0
    print(result)
    logging.warning("Test file recognise OK.")

if __name__ == '__main__':
    filename = 'F:/迅雷下载/音频1.wav'
    test_file_recognise(filename)